package net.tv90.bfmccore.unlock;


import java.util.HashMap;
import java.util.Map;

public class ItemResources {
    public static Map<String, UnlockItem> Item_Map = new HashMap<>();

    //TODO
    static {
        Item_Map.put("carbonfiber", new UnlockItem("carbonfiber","Carbon Fiber","碳纤刀"));
        Item_Map.put("dive", new UnlockItem("dive","DIVE","潜水刀"));
        Item_Map.put("survival", new UnlockItem("survival","SURVIVAL","求生刀"));
        Item_Map.put("improvised", new UnlockItem("improvised","IMPROVISED","自制刀"));
        Item_Map.put("katana", new UnlockItem("katana","KATANA","武士刀"));
        Item_Map.put("precision", new UnlockItem("precision","PRECISION","精准刀"));
        Item_Map.put("bj2", new UnlockItem("bj2","BJ-2","BJ-2"));
        Item_Map.put("shank", new UnlockItem("shank","SHANK","监狱短刀"));
        Item_Map.put("baseballbat", new UnlockItem("baseballbat","BASEBALL BAT","棒球棒"));
        Item_Map.put("m2sword", new UnlockItem("m2sword","M2 SWORD","M2战术剑"));
        Item_Map.put("weaver", new UnlockItem("weaver","WEAVER","编织刀"));
        Item_Map.put("kobra", new UnlockItem("kobra","Kobra[RDS]","Kobra[内红点]"));
        Item_Map.put("reflex", new UnlockItem("reflex","Reflex[RDS]","Reflex[内红点]"));
        Item_Map.put("coyote", new UnlockItem("coyote","Coyote[RDS]","Coyote[内红点]"));
        Item_Map.put("pkas", new UnlockItem("pkas","PKA-S[1x]","PKA-S[1x]"));
        Item_Map.put("holo", new UnlockItem("holo","HOLO[1x]","HOLO[1x]"));
        Item_Map.put("qxm7", new UnlockItem("qxm7","QXM-7[1x]","QXM-7[1x]"));
        Item_Map.put("pka", new UnlockItem("pka","PK-A[3.4x]","PK-A[3.4x]"));
        Item_Map.put("m145", new UnlockItem("m145","M145[3.4x]","M145[3.4x]"));
        Item_Map.put("prisma", new UnlockItem("prisma","Prisma[3.4x]","Prisma[3.4x]"));
        Item_Map.put("okp7", new UnlockItem("okp7","OKP-7[RDS]","OKP-7[RDS]"));
        Item_Map.put("t1", new UnlockItem("t1","T1[RDS]","T1[RDS]"));
        Item_Map.put("barska", new UnlockItem("barska","BARSKA[RDS]","BARSKA[RDS]"));
        Item_Map.put("pso1", new UnlockItem("pso1","PSO-1[4x]","PSO-1[4x]"));
        Item_Map.put("acog", new UnlockItem("acog","ACOG TA-31[4x]","ACOG TA-31[4x]"));
        Item_Map.put("jgm4", new UnlockItem("jgm4","JGM-4[4x]","JGM-4[4x]"));
        Item_Map.put("pks07", new UnlockItem("pks07","PKS-07[7x]","PKS-07[7x]"));
        Item_Map.put("8xscope", new UnlockItem("8xscope","Rifle Scope[8x]","Rifle Scope[8x]"));
        Item_Map.put("cl6x", new UnlockItem("cl6x","CL6X[6x]","CL6X[6x]"));
        Item_Map.put("r2", new UnlockItem("r2","R2 Suppressor","R2抑制器"));
        Item_Map.put("pbs4", new UnlockItem("pbs4","PBS-4 Suppressor","PBS-4抑制器"));
        Item_Map.put("ls06", new UnlockItem("ls06","LS06 Suppressor","LS06抑制器"));
        Item_Map.put("detector", new UnlockItem("detector","Detector","探测器"));
        Item_Map.put("pbsuppressor", new UnlockItem("pbsuppressor","PB Heavy","PB重型抑制器"));
        Item_Map.put("type4heavy", new UnlockItem("type4heavy","TYPE-4 Heavy","四式重型抑制器"));
        Item_Map.put("", new UnlockItem("","",""));
    }

    public static UnlockItem getItemById(String id){
        return Item_Map.get(id);
    }

    public static String getNameById(String id){
        return Item_Map.get(id).getName();
    }

    public static String getName_LangById(String id){
        return Item_Map.get(id).getName_lang();
    }
}
